export default class Local {
    static localSave (key: string, value: string): void {
        localStorage.setItem(key, value);
    }

    static localDelete (key: string): void {
        localStorage.removeItem(key);
    }

    static localRead (key: string): string {
        return localStorage.getItem(key) || ''
    }

    static localClear () {
        localStorage.clear()
    }

    static SessSave (key: string, value: string): void {
        sessionStorage.setItem(key, value);
    }

    static SessDelete (key: string): void {
        sessionStorage.removeItem(key);
    }

    static SessRead (key: string, ): string {
        return sessionStorage.getItem(key) || ''
    }

    static SessClear (): void {
        sessionStorage.clear()
    }
}